package com.dirtylily.myblog.dao;


import com.dirtylily.myblog.pojo.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TypeDao {
//    查
    Type getType(Long id);

    List<Type> getAllType();
//    改
    int  updateType(Type type);


    //增
    int saveType(Type type);


//    删
    int delType(Long id);

    Type getTypeByName(String name);


}
